<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::post('login','login/userLogin');//登录

Route::get('yanZhengMa', 'Verify/verify');//获取验证码

Route::group('user', function () {

    Route::get('userOne','user/updateUser');//用户信息
    Route::post('userUpdate','user/updateUser');//修改用户信息
    Route::post('userCreate','user/createUser');//注册用户信息
    Route::miss('blog/miss');

})->middleware([\app\middleware\AuthCheck::class]);